////////////////////////////////////////////////////////////////////////////////
//
//  FLYING KIWI BV
//  Copyright 2010 Flying Kiwi BV
//  All Rights Reserved.
//
//  NOTICE: Flying Kiwi permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////
package plantool.events {
	//--------------------------------------------------------------------------
	//  Imports
	//--------------------------------------------------------------------------
	
	//--------------------------------------------------------------------------
	//  [Metadata (Events, Style, Effects etc)]
	//--------------------------------------------------------------------------
	
	//--------------------------------------------------------------------------
	//  Class declaration
	//--------------------------------------------------------------------------
	public class UserHourEvent extends UserEvent {
		//--------------------------------------------------------------------------
		//Class constants
		//--------------------------------------------------------------------------
		public static const USER_HOUR_UPDATED:String				= "user_hour_updated";
		public static const USER_WORKPLACEHOUR_DISPOSED:String		= "user_workplacehour_disposed";
		
		//--------------------------------------------------------------------------
		//Class variables
		//--------------------------------------------------------------------------
		private var _from:Date		= null;
		private var _till:Date		= null;
		
		//--------------------------------------------------------------------------
		//Class properties
		//--------------------------------------------------------------------------
		public function get from():Date {
			return _from;
		}
		public function get till():Date {
			return _till;
		}
		
		//--------------------------------------------------------------------------
		//Constructor and Destructor
		//--------------------------------------------------------------------------
		public function UserHourEvent(type:String, updatedUserId:uint, fromDate:Date, tillDate:Date, bubbles:Boolean=false, cancelable:Boolean=false) {
			//store updated properties
			_from = fromDate;
			_till = tillDate;
			
			//call super
			super(type, updatedUserId, bubbles, cancelable);
		}
		
		//--------------------------------------------------------------------------
		//Class methods
		//--------------------------------------------------------------------------
	}
}